package com.knight.mall.service;

import com.knight.mall.exception.ServiceException;
import com.knight.mall.model.Orders;
import com.knight.mall.query.OrdersQuery;
/**
 * 子订单服务类
 * @author Administrator
 *
 */
public interface OrdersService extends CommonService<Orders, OrdersQuery>{

	void updateByQuery(Orders orders, OrdersQuery query);

	void updateStatusByTradeId(Long tradeId, int status);

	/**
	 * 新增抢购订单
	 *@author <a href="mailto:xbd0723@163.com">LiXuan</a>
	 *2016年10月31日下午3:31:49
	 * @param orders
	 * @return
	 * @throws ServiceException
	 */
	Long addPanicBuyingOrders(Orders orders) throws ServiceException;
	
}
